{#{% extends 'public/base.html' %}#}
{% extends 'index/index.html' %}
{% block hello %}
<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
    </div>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 添加医顾
            </div>
            <div class="tpl-portlet-input tpl-fz-ml">
                <div class="portlet-input input-small input-inline">
                    <div class="input-icon right">
                    </div>
                </div>
            </div>
        </div>
        {% with messages = get_flashed_messages()%}
        {% if messages%}
        <ul class='flashes'>
            {% for message in messages %}
            <li style="color:red">{{ message }}</li>
            {% endfor %}
        </ul>
        {% endif %}
        {% endwith %}
        <form method="POST" action="{{url_for('consultant.add_case')}}">
            <div>
                <span>&nbsp;</span>
                <div class="form-group">
                    <strong>姓名</strong>
                    {{ form.name }}
                </div>
                <span>&nbsp;</span>
                <div class="form-group">
                    <strong>手机号:</strong>
                    {{ form.phone }}
                </div>
                <span>&nbsp;</span>
                <!--<div class="form-group">-->
                <!--<strong>状态:</strong>-->
                <!--{{ form.status }}-->
                <!--</div>-->
                <div class="form-group">
                    <!--<strong>性别</strong>-->
                    <input id="status" type="radio" name="status" value="1">正常
                    <input id="status1" type="radio" name="status" value="0">停用
                    <!--{{form.sex}}-->
                </div>
                <span>&nbsp;</span>
                <div class="form-group">
                    <strong>第三方ID:</strong>
                    {{ form.outer_id }}
                </div>
                <div class="box-footer">
                    <button type="submit" class="am-btn am-btn-primary">添加</button>
                    <a class="am-btn am-btn-primary" href="{{ url_for('consultant.detail', page=page) }}">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
{%endblock%}
